package com.woniu.smart.service.impl;

import com.woniu.smart.dto.EquipmentDTO;
import com.woniu.smart.entity.Equipment;
import com.woniu.smart.mapper.EquipmentMapper;
import com.woniu.smart.service.EquipmentService;
import com.woniu.smart.vo.EquipmentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: smart
 * @description:
 * @author: qqq
 * @create: 2022-10-20 18:11
 **/
@Service
public class EquipmentServiceImpl implements EquipmentService {
    @Autowired
    private EquipmentMapper equipmentMapper;

    @Override
    public int deleteAll(List list) {
        return equipmentMapper.deleteAll(list);
    }

    @Override
    public List<EquipmentVO> selectAll(EquipmentDTO equipmentDTO) {
        return equipmentMapper.selectAll(equipmentDTO);
    }

    @Override
    public Long selectCount(EquipmentDTO equipmentDTO) {
        return equipmentMapper.selectCount(equipmentDTO);
    }

    @Override
    public EquipmentVO selectById(Long id) {
        return equipmentMapper.selectById(id);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return equipmentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Equipment record) {
        return equipmentMapper.insert(record);
    }

    @Override
    public int insertSelective(Equipment record) {
        return equipmentMapper.insertSelective(record);
    }

    @Override
    public Equipment selectByPrimaryKey(Long id) {
        return equipmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Equipment record) {
        return equipmentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Equipment record) {
        return equipmentMapper.updateByPrimaryKey(record);
    }
}
